home *** CD-ROM | disk | FTP | other *** search
/ Champak 140 / (Vol 140) Sep 19 2011.iso / Games / red_cross_eru.swf / scripts / __Packages / gamebase / utils / Math2.as < prev    next >
Text File  |  2011-09-19  |  6KB  |  197 lines

  1. §§push(true);
  2. §§push(false);
  3. §§push(false);
  4. §§push(true);
  5. while(true)
  6. {
  7.    if(┬º┬ºpop())
  8.    {
  9.    }
  10.    if(┬º┬ºpop())
  11.    {
  12.    }
  13.    if(┬º┬ºpop())
  14.    {
  15.       break;
  16.    }
  17.    ┬º┬ºpush(true);
  18.    ┬º┬ºpush(false);
  19. }
  20. if(!e.f)
  21. {
  22.    e.f = new g();
  23. }
  24. §§pop();
  25. if(!e.f.h)
  26. {
  27.    e.f.h = new g();
  28. }
  29. §§pop();
  30. if(!e.f.h[§§constant(4)])
  31. {
  32.    var _loc2_ = f.h[┬º┬ºconstant(4)] = function()
  33.    {
  34.    }[┬º┬ºconstant(5)];
  35.    f.h[┬º┬ºconstant(4)] = function()
  36.    {
  37.    }[┬º┬ºconstant(6)] = function(a, b, c)
  38.    {
  39.       return {┬º\┬º\┬ºconstant(7)┬º:(- b + eval(┬º┬ºconstant(8))[┬º┬ºconstant(10)](eval(┬º┬ºconstant(8))[┬º┬ºconstant(9)](b,2) - 4 * a * c)) / (2 * a),┬º\┬º\┬ºconstant(11)┬º:(- b - eval(┬º┬ºconstant(8))[┬º┬ºconstant(10)](eval(┬º┬ºconstant(8))[┬º┬ºconstant(9)](b,2) - 4 * a * c)) / (2 * a)};
  40.    };
  41.    f.h[┬º┬ºconstant(4)] = function()
  42.    {
  43.    }[┬º┬ºconstant(12)] = function(x, y, x2, y2)
  44.    {
  45.       return x - x2 >= 0 ? 270 + eval(┬º┬ºconstant(8))[┬º┬ºconstant(13)]((y - y2) / (x - x2)) * 57.29577951308232 : 90 + eval(┬º┬ºconstant(8))[┬º┬ºconstant(13)]((y - y2) / (x - x2)) * 57.29577951308232;
  46.    };
  47.    f.h[┬º┬ºconstant(4)] = function()
  48.    {
  49.    }[┬º┬ºconstant(14)] = function(v, t, dp)
  50.    {
  51.       return eval(┬º┬ºconstant(8))[┬º┬ºconstant(15)](v / t * 100 * eval(┬º┬ºconstant(8))[┬º┬ºconstant(9)](10,dp)) / eval(┬º┬ºconstant(8))[┬º┬ºconstant(9)](10,dp);
  52.    };
  53.    f.h[┬º┬ºconstant(4)] = function()
  54.    {
  55.    }[┬º┬ºconstant(16)] = function(n, dp)
  56.    {
  57.       return eval(┬º┬ºconstant(8))[┬º┬ºconstant(15)](n * eval(┬º┬ºconstant(8))[┬º┬ºconstant(9)](10,dp)) / eval(┬º┬ºconstant(8))[┬º┬ºconstant(9)](10,dp);
  58.    };
  59.    f.h[┬º┬ºconstant(4)] = function()
  60.    {
  61.    }[┬º┬ºconstant(17)] = function(n, dp)
  62.    {
  63.       return eval(┬º┬ºconstant(8))[┬º┬ºconstant(18)](n * eval(┬º┬ºconstant(8))[┬º┬ºconstant(9)](10,dp)) / eval(┬º┬ºconstant(8))[┬º┬ºconstant(9)](10,dp);
  64.    };
  65.    f.h[┬º┬ºconstant(4)] = function()
  66.    {
  67.    }[┬º┬ºconstant(19)] = function(n, dp)
  68.    {
  69.       return eval(┬º┬ºconstant(8))[┬º┬ºconstant(20)](n * eval(┬º┬ºconstant(8))[┬º┬ºconstant(9)](10,dp)) / eval(┬º┬ºconstant(8))[┬º┬ºconstant(9)](10,dp);
  70.    };
  71.    f.h[┬º┬ºconstant(4)] = function()
  72.    {
  73.    }[┬º┬ºconstant(21)] = function(n, i, max)
  74.    {
  75.       max = n[0];
  76.       i = 1;
  77.       while(i < n[┬º┬ºconstant(22)])
  78.       {
  79.          if(n[i] > max)
  80.          {
  81.             max = n[i];
  82.          }
  83.          i = i + 1;
  84.       }
  85.       return max;
  86.    };
  87.    f.h[┬º┬ºconstant(4)] = function()
  88.    {
  89.    }[┬º┬ºconstant(23)] = function(n, i, min)
  90.    {
  91.       min = n[0];
  92.       i = 1;
  93.       while(i < n[┬º┬ºconstant(22)])
  94.       {
  95.          if(n[i] < min)
  96.          {
  97.             min = n[i];
  98.          }
  99.          i = i + 1;
  100.       }
  101.       return min;
  102.    };
  103.    f.h[┬º┬ºconstant(4)] = function()
  104.    {
  105.    }[┬º┬ºconstant(24)] = function(n, i, j)
  106.    {
  107.       j = 0;
  108.       i = 0;
  109.       while(i < n[┬º┬ºconstant(22)])
  110.       {
  111.          j += n[i];
  112.          i = i + 1;
  113.       }
  114.       return j / n[┬º┬ºconstant(22)];
  115.    };
  116.    f.h[┬º┬ºconstant(4)] = function()
  117.    {
  118.    }[┬º┬ºconstant(25)] = function(n, i)
  119.    {
  120.       i = 0;
  121.       while(i < n[┬º┬ºconstant(22)])
  122.       {
  123.          n[i][┬º┬ºconstant(26)] = n[i];
  124.          i = i + 1;
  125.       }
  126.       n[┬º┬ºconstant(29)](┬º┬ºconstant(26),eval(┬º┬ºconstant(27))[┬º┬ºconstant(28)]);
  127.       if(n[┬º┬ºconstant(22)] / 2 == eval(┬º┬ºconstant(8))[┬º┬ºconstant(15)](n[┬º┬ºconstant(22)] / 2))
  128.       {
  129.          return (n[n[┬º┬ºconstant(22)] / 2 - 1] + n[n[┬º┬ºconstant(22)] / 2]) / 2;
  130.       }
  131.       return n[eval(┬º┬ºconstant(8))[┬º┬ºconstant(20)](n[┬º┬ºconstant(22)] / 2) - 1];
  132.    };
  133.    f.h[┬º┬ºconstant(4)] = function()
  134.    {
  135.    }[┬º┬ºconstant(30)] = function(n)
  136.    {
  137.       return f.h[┬º┬ºconstant(4)][┬º┬ºconstant(21)](n,0,0) - f.h[┬º┬ºconstant(4)][┬º┬ºconstant(23)](n,0,0);
  138.    };
  139.    f.h[┬º┬ºconstant(4)] = function()
  140.    {
  141.    }[┬º┬ºconstant(31)] = function(n, t, i, k, o, l, y)
  142.    {
  143.       y = new ┬º\┬º\┬ºconstant(27)┬º();
  144.       k = new ┬º\┬º\┬ºconstant(27)┬º();
  145.       l = new ┬º\┬º\┬ºconstant(27)┬º();
  146.       k[0] = n[0];
  147.       i = 0;
  148.       while(i < n[┬º┬ºconstant(22)])
  149.       {
  150.          o = 0;
  151.          while(o < k[┬º┬ºconstant(22)])
  152.          {
  153.             if(n[i] == k[o])
  154.             {
  155.                break;
  156.             }
  157.             o = o + 1;
  158.          }
  159.          if(o >= k[┬º┬ºconstant(22)])
  160.          {
  161.             k[k[┬º┬ºconstant(22)]] = n[i];
  162.          }
  163.          i = i + 1;
  164.       }
  165.       t = n[┬º┬ºconstant(33)](┬º┬ºconstant(32));
  166.       y[0] = k[0];
  167.       l[0] = t[┬º┬ºconstant(34)](k[0])[┬º┬ºconstant(22)] - 1;
  168.       i = 1;
  169.       while(i < k[┬º┬ºconstant(22)])
  170.       {
  171.          if(t[┬º┬ºconstant(34)](k[i])[┬º┬ºconstant(22)] - 1 > l[0])
  172.          {
  173.             l[0] = t[┬º┬ºconstant(34)](k[i])[┬º┬ºconstant(22)] - 1;
  174.             y = new ┬º\┬º\┬ºconstant(27)┬º();
  175.             y[0] = k[i];
  176.          }
  177.          else if(t[┬º┬ºconstant(34)](k[i])[┬º┬ºconstant(22)] - 1 == l[0])
  178.          {
  179.             y[y[┬º┬ºconstant(22)]] = k[i];
  180.          }
  181.          i = i + 1;
  182.       }
  183.       return y;
  184.    };
  185.    f.h[┬º┬ºconstant(4)] = function()
  186.    {
  187.    }[┬º┬ºconstant(35)] = function(num, n)
  188.    {
  189.       return eval(┬º┬ºconstant(8))[┬º┬ºconstant(9)](num,1 / n);
  190.    };
  191.    f.h[┬º┬ºconstant(4)] = function()
  192.    {
  193.    }[┬º┬ºconstant(36)] = new ┬º\┬º\┬ºconstant(37)┬º(1.6180339887498947);
  194.    ┬º┬ºpush(┬º┬ºconstant(38)(f.h[┬º┬ºconstant(4)][┬º┬ºconstant(5)],null,1));
  195. }
  196. §§pop();
  197.